package creational.builder;

/**
 * @Description: 测试类
 * @Author: lxt
 * @CreateDate: 2019/11/1
 **/
public class BuilderTest {
    public static void main(String[] args) {
        Director socketDirector = new Director(new SocketMessageBuilder());
        socketDirector.build("serverA", "clientB", "hello b!").send();

        Director componentDirector = new Director(new ComponentMessageBuilder());
        componentDirector.build("componentA", "componentB", "hello componentB!").send();
    }
}
